package com.one.blocks.rbac.config;

import com.one.blocks.rbac.exception.RbacGlobalExceptionHandler;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * TODO RbacGlobalExceptionHandler 不能@Bean方式注册，会导致spring当前context生效但子context代理失效
 * 原因暂未知，猜测@Bean vs @Component区别有关
 * @author <a href="mailto:idler41@163.con">linfuxin</a> created on 2023-12-25 16:23:27
 */
@Configuration
@ComponentScan(basePackages = "com.one.blocks.rbac.exception")
@ConditionalOnMissingBean(RbacGlobalExceptionHandler.class)
public class RbacExceptionHandlerConfig {
}
